package com.ucode.model.hrm.convert;

import com.ucode.model.hrm.HrmCustomerProject;
import com.ucode.model.hrm.form.HrmCustomerProjectForm;
import com.ucode.model.hrm.vo.HrmCustomerProjectVO;
import com.ucode.tool.base.Paginator;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface HrmCustomerProjectConvert {

    HrmCustomerProjectConvert INSTANCE = Mappers.getMapper(HrmCustomerProjectConvert.class);

    HrmCustomerProject convert(HrmCustomerProjectForm form);

    HrmCustomerProjectVO convert(HrmCustomerProject bean);

    Paginator<HrmCustomerProjectVO> convertPage(Paginator<HrmCustomerProject> page);

    List<HrmCustomerProjectVO> convertList(List<HrmCustomerProject> list);

}


